'use strict'

let index_fn = async (ctx, next) => {
    ctx.body = `
    <h1>This is LoginPanel</h1>
    <form action="/loginDone" method="POST">
    <label>username:</label><input type="text" name="username"><br>
    <label>password:</label><input type="password" name="password"><br>
    <input type="submit" value="Login">
    </form>
    `
}

let proFile_fn = async (ctx, next) => {
    ctx.body = `<a href="/proFile.html">个人中心</a>`
}

let login_fn = async (ctx,next)=>{
    ctx.body = "来点不一样的呗"
}

module.exports = {
    '/':['get',index_fn],
    '/proFile:':['get',proFile_fn],
    '/loginDone':['post',login_fn]
}